<?php

use yii\helpers\Html;

/* @var $this yii\web\View */
/* @var $model common\models\Product */

$this->title = '批量生成兑换码: ' . $model->product_name;
$this->params['breadcrumbs'][] = ['label' => 'Products', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="product-update">
    <div class="box-body">
        <form id="w0" class="form-horizontal" action="/index.php?r=product/generate&id=<?= $model->id ?>" method="post">
            <input type="hidden" name="_csrf-backend" value="<?= Yii::$app->request->csrfToken ?>">
            <div class="form-group field-product-number required">
                <label class="col-sm-2 control-label" for="product-goods_sn">生成数量</label>
                <div class="col-sm-10"><input type="text" id="product-number" class="form-control" name="number" maxlength="4" aria-required="true">
                    <div class="help-block"></div></div>
            </div>
            <div class="box-footer">
                <a href="javascript:history.back();" class="btn btn-default">取消</a>
                <button type="submit" class="btn btn-success pull-right">生成</button>
            </div>

        </form>
    </div>

</div>
